#pragma once

#include "TinyMsg.h"
//#include "TalkObject.h"
//#include "VoiceTalkObject.h"

using namespace TinyCC::msg;
namespace TalkProcess{

//pre declaration
class CTalkObject;
class CVoiceTalkObject;

class CTinyTalkObjectPool
{
public:
	CTinyTalkObjectPool(void);
	~CTinyTalkObjectPool(void);
	virtual void ProcessReceivedMsg(CTinyMsg& inMsg,CTinyMsg& OutMsg);
	CTalkObject* GetTalkObjectByDeviceID(std::string& talkID);
	CVoiceTalkObject* GetNewVoiceTalkObject();
private:
	std::map<std::string,CTalkObject*> m_TalkObjects;
};
}